<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="root">
    <one></one>
</div>
</body>
<script>
    Vue.prototype.name = 'sxx';
    new Vue({
        el: "#root",
        components:{
            One:{
                template:(`
				    <div>
				        <button @click="fn">点我</button>
                    </div>
				`),
                methods:{
                    fn(){
                        console.log(this.__proto__.__proto__.name);//sxx
                        console.log(this.__proto__.__proto__ === Vue.prototype);//true
                    }
                }
            }
        }
    })
</script>
</html>